

import 'package:flutter/services.dart';

class Utils {
  /// 获取图片路径
  static String getImgPath(String name, {String format: 'png'}) {
    return 'images/$name.$format';
  }

  ///复制到剪粘板
  static copyToClipboard(final String text) {
    if (text == null) return;
    Clipboard.setData(new ClipboardData(text: text));
  }

}